package day05;

public class MethodDemo1 {

    public static void main(String[] args) {
        say();
        say();
        say();
        say("张麒");
        say("张三",89);//重载
        int s=sum(4,5);
        say("李四",23);

        System.out.println("sum="+s);
    }
    public static void say(){
        System.out.println("你好呀！！！蠢蛋！！！");
    }
    public static void say(String name){
        System.out.println("你好，我叫"+name+"，今年68了！！！！！！！！！！！！！");
    }
    public static void say(String name,int age){
        System.out.println("大家好，我叫"+name+"，今年"+age+"岁啦！！！");
    }
    public  static void say(int age){
    }
    public static void say(int age,String name){
    }
    public static int sum(int a,int b){
        int sum=0;
        sum=a+b;
        return sum;
    }
}
